<template>
  <div :class="{ 'top-tab-item': true, active: active }">
    {{ tabName || '--' }}
  </div>
</template>
<script setup lang="ts">
interface Props {
  active: boolean;
  tabName: string;
  width: string;
}
withDefaults(defineProps<Props>(), {
  active: false,
  tabName: ''
});
</script>
<style lang="less" scoped>
.top-tab-item {
  flex-grow: 1;
  flex-basis: 0;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-color-2);
  font-family: PingFangSC-Regular;
  font-size: 14px;
  color: var(--color-3);
  letter-spacing: 0;
  text-align: center;
  font-weight: 400;
  &.active {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-4);
  }
}
</style>
